#ifndef SIMULATIONWIN_HPP
#define SIMULATIONWIN_HPP

#include <QWidget>
#include <QStatusBar>

#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
#include <Inventor/nodes/SoSeparator.h>

#include "ui_simulation.h"

#include "dexelfield.hpp"
#include "dexel.hpp"
#include "marching_cubes.hpp"

#include "heightfield.hpp"

class simulationwin : public QWidget, public Ui::simulationwin
{
  Q_OBJECT
  
  public:
  simulationwin(QWidget *parent = 0);
  virtual ~simulationwin();

  void prepare();


private slots:
	void on_RefreshButton_clicked();
	void on_SwitchModeButton_toggled( bool checked ); 
	
  
  
private:
 
 SoSeparator *root;
 SoQtExaminerViewer *viewer;

  heightfield blank;
  
  // dexelfield blank;
 
  //Facetter fac;
 
}; 

#endif


